alaoshi = 1000
blaoshi = 500

val = 60  if  alaoshi >blaoshi  else  59

print(val)